﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Linq;
using System.Net;
using System.IO;
using System.Text;
using MM.Common;
using MM.DBUtility;

namespace WebRequestCenterMgr
{
    public partial class charge3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    Encoding encode = System.Text.Encoding.GetEncoding("gbk");
                    Stream ReceiveStream = Request.InputStream;
                    StreamReader readStream = new StreamReader(ReceiveStream, encode);
                    Char[] read = new Char[256];
                    int count = readStream.Read(read, 0, 256);
                    string strXML = null;
                    while (count > 0)
                    {
                        strXML += new String(read, 0, count);
                        count = readStream.Read(read, 0, 256);
                    }
                    readStream.Close();

                    if (!string.IsNullOrEmpty(strXML))
                    {
                        Response.Write(BLSqlDataChargeV3.GetChargeInfoV3(strXML));
                    }
                    else Response.Write("");

                }
            }
            catch (Exception ex)
            {
                LogHelp.WriteLogInfo(ex.ToString());
                Response.Write("");
            }
        }
    }
}
